package com.wanghang.code.common.exception;


import lombok.Data;

@Data
public class ServiceException extends RuntimeException{
    /**
     * 错误码
     */
    private Integer code;

    /**
     * 错误提示
     */
    private String message;


    public ServiceException(String message){
        this.message = message;
    }

    public ServiceException(String message, Integer code){
        this.message = message;
        this.code = code;
    }
}
